package com.example.a2209_shop.database

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query

@Dao
interface CarSearchDao {
    @Insert(onConflict = REPLACE)
    fun insert(carSearchEntity: CarSearchEntity)
    @Query("select * from carSearch where userId=:userId")
    fun query(userId:Int):List<CarSearchEntity>?
}